package com.dushuren.project.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dushuren.project.model.dto.SearchWordsRequest;
import com.dushuren.project.model.entity.RecordWordsSearch;
import com.dushuren.project.model.entity.SuggestWordsSearch;
import com.dushuren.project.model.vo.SuggestWordsSearchVo;

/**
* @author qieqie
* @description 针对表【record_words_search(搜索记录表)】的数据库操作Service
* @createDate 2022-11-02 19:20:10
*/
public interface RecordWordsSearchService extends IService<RecordWordsSearch> {


  /**
   * 存储搜索词 查询 Words id 是否已经存在于 RecordWordsSearch 记录表中 ( 0 数据已存在 1 数据载入成功)
   * @param userId 用户id
   * @param information 信息
   * @return
   */
  Long QueryIsRecordWords(Long userId, String information);

  /***
   * 分页查询 搜索词
   * @param searchWordsRequest
   * @return
   */
  Page<SuggestWordsSearchVo> queryListData(SearchWordsRequest searchWordsRequest);

  /**
   * 删除 搜索词
   * @param searchId
   * @return
   */
  Long deleteSearchWords(Long searchId);

  /***
   * 修改 推荐搜索词
   * @param recordWordsSearch 修改的数据
   * @return
   */
  Long updateSearchWords(RecordWordsSearch recordWordsSearch);

  /***
   * 增加 推荐词
   * @param recordWordsSearch 增加的数据
   * @return
   */
  Long addSearchWords(RecordWordsSearch recordWordsSearch);
}
